home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7107 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: logica.co.uk!usenet
  2. From: savillj@logica.com (John Savill)
  3. Newsgroups: comp.lang.c++
  4. Subject: How to change the main window title?
  5. Date: 21 Feb 1996 08:02:22 GMT
  6. Organization: Logica
  7. Message-ID: <4gejie$eaj@romeo.logica.co.uk>
  8. NNTP-Posting-Host: 158.234.77.147
  9. Mime-Version: 1.0
  10. Content-Type: Text/Plain; charset=US-ASCII
  11. X-Newsreader: WinVN 0.99.6
  12.  
  13. Sorry if this seems a stupid question however I have just started to use 
  14. Visual C++ 2.0 and use the new project wizard to automatically setup the main 
  15. files. To create the main application window it uses the code below, however 
  16. it sets the main window title to be "FASTManage - Untitled", and I would like 
  17. to set it to just "FASTManage". I tried adding the line shown with a *, 
  18. however it appears to have no affect.
  19.  
  20. int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
  21. {
  22.    ****    lpCreateStruct->lpszName="FASTManage";  ****
  23.     if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
  24.         return -1;
  25.  
  26. I suspect you need to suppress the application from displaying the document 
  27. name, however I do not know how to do this, and have no idea what the 
  28. consequences of this would be.
  29.  
  30.  
  31. A seperate question is that the application I need to write should have a main 
  32. small window with the toolbar buttons and a status, and then should generate 
  33. new sperate windows but OUTSIDE the main application window to display various 
  34. information. Is this very hard to do?
  35.  
  36.  
  37. Any help would be grately appreciated.
  38.  
  39. Thanks
  40.  
  41. John
  42.  
  43.